Skip to content

add --source flag for npm or git download#1

Open
agustif wants to merge 3 commits intovercel-labs:mainfrom
agustif:main
Open

add --source flag for npm or git download#1
agustif wants to merge 3 commits intovercel-labs:mainfrom
agustif:main

Conversation

@agustif
Copy link

@agustif agustif commented Jan 7, 2026

Adds --source flag to choose between downloading from GitHub (git clone) or npmjs (tarball)

Changes:

  • Add --source flag with options: git (default) or npm
  • New npm.ts module for downloading and extracting npm tarballs
  • Updated fetch command to support both download methods
  • Refactored common functions into common.ts module
    This allows users to download source code from npm tarballs instead of cloning from GitHub repositories, which is useful for packages without public repos or when git clone fails.

@agustif agustif marked this pull request as ready for review January 7, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant